<%-- 
    Document   : modificarCita
    Created on : Dec 13, 2011, 4:15:10 PM
    Author     : asabido
--%>
<%@page import="Negocio.Cita"%>
<%@page import="Negocio.AdminDB"%>
<%AdminDB adb = new AdminDB();%>
<%Cita cita = (Cita) session.getAttribute("Cita");%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<title></title>
	<meta name="description" content="">
	<meta name="author" content="">

	<meta name="viewport" content="width=device-width,initial-scale=1">

	<link rel="stylesheet" href="css/style.css"/>
	<link rel="stylesheet" href="css/eggplant/eggplant.css">

	<script src="js/libs/modernizr-2.0.6.min.js"></script>
</head>
<body>

<div id="container">
    <header>
            <h1>- Modificar una Cita -</h1>
    </header>
    <div id="main" role="main">

        <form class="inputForm" name="peticionCita" action="<%=request.getContextPath()%>/EditarCita" method="POST" >
            <label for="estado" style="color: white; font-size: 125%">Estado</label>	
            <input type="text" name="estado" value=<%=cita.getEstado()%> required/><br/><br/>
            <input id="datepicker" type="text" name="fechaHoraCita" value=<%=adb.toFyH(cita.getFecha(),cita.getHora())%> required/><br/><br/>
            <input id="tratamientoInput" type="text" name="tratamiento" value=<%=cita.getTratamiento().getNombre()%> required/><br/><br/>
            <label for="especialista" style="color: white; font-size: 125%">Especialista</label>
            <select id="selectEspecialistas" name="especialista">
                <option value="" disabled="disabled">Especialista</option>
                <option value="Cristina" class="avatar-big" title="resource/thumbs/cristinaThumb.png">Cristina</option>		
                <option value="Beatriz" class="avatar-big" title="resource/thumbs/beatrizThumb.png">Beatriz</option>
                <option value="Sara" class="avatar-big" title="resource/thumbs/saraThumb.png">Sara</option>
                <option value="Nuria" class="avatar-big" title="resource/thumbs/nuriaThumb.png">Nuria</option>
            </select><br/>
            <input type="email" name="emailCliente" value=<%=cita.getCliente().getEmail()%> required/><br/><br/>
            <textarea class="textArea" name="comentario" value=<%=cita.getComentarios()%>></textarea><br/><br/><br/>
            <input type="hidden" name="hiddenId" value=<%=cita.getID()%> />
            <input id="BtnPeticionCita" type="submit" value="Guardar" name="submit" />
        </form>

        <a href="home.jsp"><h3>Volver al menu</h3></a>

    </div>
<footer class="footer">
        <table>
            <thead>
                <th>DIRECCIÓN</th>
                <th>TELÉFONO</th>
                <th>CORREO ELECTRÓNICO</th>
            </thead>
            <tbody>
                <tr>
                    <td>Clara del Rey, 11</td>
                    <td>91-519.48.37</td>
                    <td>contacto@borisysaky.com</td>
                </tr>
                <tr>
                    <td>Metro: Cartagena</td>
                </tr>
                <tr>
                    <td>Autobús: 146 y C1</td>
                </tr>
            </tbody>
        </table>
</footer>
</div> <!--! end of #container -->

<script src="js/libs/jquery-1.6.2.min.js"></script>
<script src="js/libs/jquery-ui-1.8.16.custom.min.js"></script>

<!-- scripts concatenated and minified via ant build script-->
<script src="js/plugins/timepicker.js"></script>
<script src="js/plugins/selectmenu.js"></script>
<script src="js/script.js"></script>
<!-- end scripts-->

<!--[if lt IE 7 ]>
	<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js"></script>
	<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
<![endif]-->

</body>
</html>